import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      title: "首页",
    },
  },
  {
    path: '/Mall',
    name: 'Mall',
    component: () => import(/* webpackChunkName: "about" */ '@/views/Mall'),
    meta: {
      title: "云采商城",
    },
  },
  {
    path: '/Supplier',
    name: 'Supplier',
    component: () => import(/* webpackChunkName: "about" */ '@/views/Supplier'),
    meta: {
      title: "供应商",
    },
  },
  {
    path: '/SupplyChain',
    name: 'SupplyChain',
    component: () => import(/* webpackChunkName: "about" */ '@/views/SupplyChain'),
    meta: {
      title: "供应链",
    },
  },
  {
    path: '/ExpertLibrary',
    name: 'ExpertLibrary',
    component: () => import(/* webpackChunkName: "about" */ '@/views/ExpertLibrary'),
    meta: {
      title: "专家库",
    },
  },
  {
    path: '/LaborServicePlatform',
    name: 'LaborServicePlatform',
    component: () => import(/* webpackChunkName: "about" */ '@/views/LaborServicePlatform'),
    meta: {
      title: "劳务平台",
    },
  },
  {
    path: '/BiddingPlatform',
    name: 'BiddingPlatform',
    component: () => import(/* webpackChunkName: "about" */ '@/views/BiddingPlatform'),
    meta: {
      title: "招投标平台",
    },
  },
  {
    path: '/OnlineShowroom',
    name: 'OnlineShowroom',
    component: () => import(/* webpackChunkName: "about" */ '@/views/OnlineShowroom'),
    meta: {
      title: "线上展厅",
    },
  },
  {
    path: '/CloudShot',
    name: 'CloudShot',
    component: () => import(/* webpackChunkName: "about" */ '@/views/CloudShot'),
    meta: {
      title: "云拍",
    },
  },
  {
    path: '/CarbonPrattWhitney',
    name: 'CarbonPrattWhitney',
    component: () => import(/* webpackChunkName: "about" */ '@/views/CarbonPrattWhitney'),
    meta: {
      title: "碳普惠",
    },
  },
  {
    path: '/Tool',
    name: 'Tool',
    component: () => import(/* webpackChunkName: "about" */ '@/views/Tool'),
    meta: {
      title: "工具",
    },
  },
  {
    path: '/Login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "about" */ '@/views/Login'),
    meta: {
      title: "工具",
    },
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
